package com.qf3.web;

import com.qf3.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainTest {

    public static void main(String[] args) {
        ApplicationContext ioc = new ClassPathXmlApplicationContext("spring-aop3.xml");

        UserService userService = ioc.getBean(UserService.class);

        userService.findAll();
        System.out.println("--------------");
        userService.insert("zs","123",18);

        System.out.println("---------------");
        userService.findById(5);
    }
}
